package com.bookstore.domain;

/*
    用户收货地址表address
    存放了每个用户的收货信息

 */
public class Address {
    private Integer addressId;//地址id
    private Integer uid;//地址所属人的id
    private String address;//地址详情
    private String phone;//收货人电话
    private String name;//收货人姓名

    public Address() {
    }

    public Address(Integer addressId, Integer uid, String address, String phone, String name) {
        this.addressId = addressId;
        this.uid = uid;
        this.address = address;
        this.phone = phone;
        this.name = name;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Address{" +
                "addressId=" + addressId +
                ", uid=" + uid +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
